package com.ruoyi.miniapp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 孩子信息对象 mini_child_info
 * 
 * @author duantao
 * @date 2025-09-19
 */
public class MiniChildInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 孩子ID */
    private Long childId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String childName;

    /** 头像 */
    @Excel(name = "头像")
    private String childAvatar;

    /** 性别 */
    @Excel(name = "性别")
    private String childSex;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date childBirthday;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String childAddress;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String childTel;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setChildId(Long childId) 
    {
        this.childId = childId;
    }

    public Long getChildId() 
    {
        return childId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setChildName(String childName) 
    {
        this.childName = childName;
    }

    public String getChildName() 
    {
        return childName;
    }

    public void setChildAvatar(String childAvatar) 
    {
        this.childAvatar = childAvatar;
    }

    public String getChildAvatar() 
    {
        return childAvatar;
    }

    public void setChildSex(String childSex) 
    {
        this.childSex = childSex;
    }

    public String getChildSex() 
    {
        return childSex;
    }

    public void setChildBirthday(Date childBirthday) 
    {
        this.childBirthday = childBirthday;
    }

    public Date getChildBirthday() 
    {
        return childBirthday;
    }

    public void setChildAddress(String childAddress) 
    {
        this.childAddress = childAddress;
    }

    public String getChildAddress() 
    {
        return childAddress;
    }

    public void setChildTel(String childTel) 
    {
        this.childTel = childTel;
    }

    public String getChildTel() 
    {
        return childTel;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("childId", getChildId())
            .append("userId", getUserId())
            .append("childName", getChildName())
            .append("childAvatar", getChildAvatar())
            .append("childSex", getChildSex())
            .append("childBirthday", getChildBirthday())
            .append("childAddress", getChildAddress())
            .append("childTel", getChildTel())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
